<?php
require_once "session.php";
$card_num=$_POST["number"];
$holder=$_POST["name"];
$bank_name=$_POST["bank"];
$weixin_id=$_SESSION["user"];
$user = $core->GetUserByWxId($weixin_id);
$result=$core->AddCard($user["id"],$card_num,$holder,$bank_name);
if(!empty($result)){
    echo $result;
}